$OpenBSD: patch-kdecore_tests_kurltest_cpp,v 1.4 2008/08/26 16:52:29 espie Exp $
--- kdecore/tests/kurltest.cpp.orig	Tue Aug 19 20:18:16 2008
+++ kdecore/tests/kurltest.cpp	Thu Aug 21 00:02:14 2008
@@ -317,6 +317,16 @@ int main(int argc, char *argv[])
   check("KURL::prettyURL()", whitespaceInPath2.prettyURL(),
           "http://www.google.com/foo%20%20%20%20%20%20 bar/");
 
+  KURL whitespaceInUser("http://www.google.com%20%20%20%20%20@foobar.com/");
+  check("KURL::prettyURL()", whitespaceInUser.prettyURL(), "http://www.google.com%20%20%20%20%20@foobar.com/");
+
+  KURL whitespaceInPath("http://www.google.com/foo%20bar/");
+  check("KURL::prettyURL()", whitespaceInPath.prettyURL(), "http://www.google.com/foo bar/");
+
+   KURL whitespaceInPath2("http://www.google.com/foo%20%20%20%20%20%20%20bar/");
+  check("KURL::prettyURL()", whitespaceInPath2.prettyURL(),
+          "http://www.google.com/foo%20%20%20%20%20%20 bar/");
+
   KURL carsten;
   carsten.setPath("/home/gis/src/kde/kdelibs/kfile/.#kfiledetailview.cpp.1.18");
   check("KURL::path()", carsten.path(), "/home/gis/src/kde/kdelibs/kfile/.#kfiledetailview.cpp.1.18");
@@ -622,6 +632,15 @@ int main(int argc, char *argv[])
         "http://meine.db24.de#link=home_c_login_login");
   check("http: URL with empty path string path", waba1.path(),
         "");
+
+  waba1 = "http://www.meinestadt.de&url_plain=http";
+  check("http: URL with empty path string", waba1.host(),
+         "www.meinestadt.de&url_plain=http");
+  check("http: URL with empty path string", waba1.htmlURL(),
+         "http://www.meinestadt.de&amp;url_plain=http");
+ 
+  check("http: URL with empty path string", waba1.path(),
+         "");
 
   waba1 = "http://www.meinestadt.de&url_plain=http";
   check("http: URL with empty path string", waba1.host(),
